home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 7616 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.5 KB  |  37 lines

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Errata for C Programming FAQs by Steve Summit
  5. Date: Tue, 27 Feb 96 17:47:51 GMT
  6. Organization: none
  7. Message-ID: <825443271snz@genesis.demon.co.uk>
  8. References: <DnED2E.ME3@aw.com>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <DnED2E.ME3@aw.com> summit@aw.com "Steve Summit" writes:
  15.  
  16. >24      1.29    The text at the bottom of the page suggests that
  17. >                "future directions" name patterns such as str[a-z]*
  18. >                are reserved only if their corresponding headers
  19. >                (e.g. <stdlib.h>) are included.  The reserved
  20. >                function names are unconditionally reserved;
  21. >                it is only the macro names that are reserved only
  22. >                if the header is included.
  23. >                [Thanks and $1 to Mark Brader]
  24.  
  25. Not quite true.
  26.  
  27. If the relevant header files are not included then the names are reserved
  28. for identifiers with *external linkage* (function or object); a static
  29. function with the name strdel() is fine so long as string.h is not included
  30. previously in the translation unit. extern int strlen; is always illegal.
  31.  
  32. -- 
  33. -----------------------------------------
  34. Lawrence Kirby | fred@genesis.demon.co.uk
  35. Wilts, England | 70734.126@compuserve.com
  36. -----------------------------------------
  37.